package topo.frame;

import java.awt.event.MouseEvent;
import javax.swing.JPopupMenu;
import topo.table.ObjectTable;
import topo.table.ObjectTableModel;
import topo.table.ScrollTablePane;
import topo.table.TableMouseHandle;

public class MACAndPortPane extends ScrollTablePane {
    public MACAndPortPane(ObjectTableModel objectTableModel) {
        super(new ObjectTable(objectTableModel));
        getObjectTable().setAutoResizeMode(4);

        super.setMouseHandle(new Hand());
    }

    class Hand implements TableMouseHandle {
        Hand() {
        }

        public JPopupMenu createObjectMenu(MouseEvent e) {
            JPopupMenu menu = new JPopupMenu();

            return menu;
        }

        public JPopupMenu createBlankMenu(MouseEvent e) {
            return null;
        }

        public void doubleClickAction(MouseEvent e) {
        }
    }
}